package com.csi.service.impl;

import com.csi.mapper.LocationMapper;
import com.csi.service.LocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class LocationServiceImpl implements LocationService {

    @Autowired
    private LocationMapper locationMapper;



    /**
     * 根据上一级id查询地区(省、市、县)
     * @param areaId
     * @return
     */
    @Override
    public Map<String, Object> getAllArea(long areaId) {
        return locationMapper.getAllArea(areaId);
    }
}
